package behavior.responsibility;

import behavior.responsibility.stratum.AbstractStratum;

public class Demo {

    public static void main(String[] args) {
        AbstractStratum abstractStratum = ChainPatternUtil.getStratumHandle();
        WarReport warReport = new WarReport("小兵在营地随意大小便",0);
        abstractStratum.handleMessage(warReport);

         warReport = new WarReport("魏国攻打我国了",3);
         abstractStratum.handleMessage(warReport);
    }

}
